/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package basico;

/**
 *
 * @author curso
 */
public class EjemploFor {
    
    public static void main(String[] args) {
        for (int i = 0; i < 10; i++)
        {
//            boolean esPar = (i%2 == 0) ? true : false;
            boolean esPar = (i%2 == 0);
            if(esPar)
            {
            System.out.println(i);
            }
            
            
        }
    }
    
}
